package com.example.infowall02.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewController {

    @GetMapping("/admin/login")
    public String loginPage() {
        return "login";
    }
    @GetMapping("/admin/home")
    public String homePage() {
        return "dashboard";
    }
    @GetMapping("/admin/home/comments")
    public String commentsPage() {
        return "comments";
    }
    @GetMapping("/admin/home/addArticle")
    public String addArticlePage() {
        return "addArticle";
    }
    @GetMapping("/admin/home/editArticle")
    public String editArticlePage() {
        return "editArticle";
    }
}
